package com.sun.module_mine

import android.content.Context
import android.content.Intent
import android.os.Bundle
import androidx.activity.compose.setContent
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.fragment.app.FragmentActivity
import com.sun.module_base.model.AppThemeState
import com.sun.module_base.theme.SystemUiController
import com.sun.module_base.widget.BaseScreen
import com.sun.module_mine.ui.pinlock.FingerprintAuthScreen


/**
 * @author:sunc
 * @time :2025/8/14 11:39
 * @desc: 描述
 */
class BiometricActivity : FragmentActivity() {
    companion object {
        fun instance(context: Context) = Intent(context, BiometricActivity::class.java)
    }

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContent {
            val systemUiController = remember { SystemUiController(window) }
            val appTheme = remember { mutableStateOf(AppThemeState()) }
            BaseScreen(appTheme.value, systemUiController) {
                FingerprintAuthScreen()
            }
        }

    }
}
